import { createApp } from "vue";
import { createPinia } from "pinia";
import "vant/lib/index.css";
import "./style/index.scss";
import App from "./App.vue";
import router from "./router";
import {
  Tab,
  Tabs,
  Icon,
  Uploader,
  Toast,
  Field,
  Popup,
  DatePicker,
  Picker,
  Overlay,
  Button,
  RadioGroup,
  Radio,
  Checkbox,
  CheckboxGroup,
  Form,
  Search,
  Calendar,
  Notify ,
} from "vant";
import imgCompress from "./utils/imgCompress";

const app = createApp(App);
app.config.globalProperties.$imgCompress = imgCompress;

app.use(createPinia());
app.use(router);
app.use(Tab);
app.use(Tabs);
app.use(Field);
app.use(Icon);
app.use(Uploader);
app.use(Toast);
app.use(Popup);
app.use(DatePicker);
app.use(Picker);
app.use(Overlay);
app.use(Button);
app.use(RadioGroup);
app.use(Radio);
app.use(Checkbox);
app.use(CheckboxGroup);
app.use(Form);
app.use(Search);
app.use(Calendar);
app.use(Notify);
app.mount("#app");
